package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.IndexItemMapper;
import com.rongke.model.IndexItem;
import com.rongke.service.IndexItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @IndexItemServiceImpl
 * @主页栏目ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class IndexItemServiceImpl extends ServiceImpl<IndexItemMapper, IndexItem> implements IndexItemService {

    @Autowired
    private IndexItemMapper indexItemMapper;

    /**
     * @根据条件查找主页栏目
     * @param indexItem
     * @return
     */
    @Override
    public List<IndexItem> selectByCondition(IndexItem indexItem) {
        return indexItemMapper.selectByCondition(indexItem);
    }
}
